package com.ygqh.baby.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author Ss
 */
public class YgVoteHelpExample {
	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public YgVoteHelpExample() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value, String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1, Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property + " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andIdIsNull() {
			addCriterion("id is null");
			return (Criteria) this;
		}

		public Criteria andIdIsNotNull() {
			addCriterion("id is not null");
			return (Criteria) this;
		}

		public Criteria andIdEqualTo(Long value) {
			addCriterion("id =", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotEqualTo(Long value) {
			addCriterion("id <>", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThan(Long value) {
			addCriterion("id >", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdGreaterThanOrEqualTo(Long value) {
			addCriterion("id >=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThan(Long value) {
			addCriterion("id <", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdLessThanOrEqualTo(Long value) {
			addCriterion("id <=", value, "id");
			return (Criteria) this;
		}

		public Criteria andIdIn(List<Long> values) {
			addCriterion("id in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotIn(List<Long> values) {
			addCriterion("id not in", values, "id");
			return (Criteria) this;
		}

		public Criteria andIdBetween(Long value1, Long value2) {
			addCriterion("id between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andIdNotBetween(Long value1, Long value2) {
			addCriterion("id not between", value1, value2, "id");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeIsNull() {
			addCriterion("vote_batch_code is null");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeIsNotNull() {
			addCriterion("vote_batch_code is not null");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeEqualTo(String value) {
			addCriterion("vote_batch_code =", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeNotEqualTo(String value) {
			addCriterion("vote_batch_code <>", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeGreaterThan(String value) {
			addCriterion("vote_batch_code >", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeGreaterThanOrEqualTo(String value) {
			addCriterion("vote_batch_code >=", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeLessThan(String value) {
			addCriterion("vote_batch_code <", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeLessThanOrEqualTo(String value) {
			addCriterion("vote_batch_code <=", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeLike(String value) {
			addCriterion("vote_batch_code like", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeNotLike(String value) {
			addCriterion("vote_batch_code not like", value, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeIn(List<String> values) {
			addCriterion("vote_batch_code in", values, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeNotIn(List<String> values) {
			addCriterion("vote_batch_code not in", values, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeBetween(String value1, String value2) {
			addCriterion("vote_batch_code between", value1, value2, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andVoteBatchCodeNotBetween(String value1, String value2) {
			addCriterion("vote_batch_code not between", value1, value2, "voteBatchCode");
			return (Criteria) this;
		}

		public Criteria andWorkIdIsNull() {
			addCriterion("work_id is null");
			return (Criteria) this;
		}

		public Criteria andWorkIdIsNotNull() {
			addCriterion("work_id is not null");
			return (Criteria) this;
		}

		public Criteria andWorkIdEqualTo(Long value) {
			addCriterion("work_id =", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdNotEqualTo(Long value) {
			addCriterion("work_id <>", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdGreaterThan(Long value) {
			addCriterion("work_id >", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdGreaterThanOrEqualTo(Long value) {
			addCriterion("work_id >=", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdLessThan(Long value) {
			addCriterion("work_id <", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdLessThanOrEqualTo(Long value) {
			addCriterion("work_id <=", value, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdIn(List<Long> values) {
			addCriterion("work_id in", values, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdNotIn(List<Long> values) {
			addCriterion("work_id not in", values, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdBetween(Long value1, Long value2) {
			addCriterion("work_id between", value1, value2, "workId");
			return (Criteria) this;
		}

		public Criteria andWorkIdNotBetween(Long value1, Long value2) {
			addCriterion("work_id not between", value1, value2, "workId");
			return (Criteria) this;
		}

		public Criteria andOpenIdIsNull() {
			addCriterion("open_id is null");
			return (Criteria) this;
		}

		public Criteria andOpenIdIsNotNull() {
			addCriterion("open_id is not null");
			return (Criteria) this;
		}

		public Criteria andOpenIdEqualTo(String value) {
			addCriterion("open_id =", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdNotEqualTo(String value) {
			addCriterion("open_id <>", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdGreaterThan(String value) {
			addCriterion("open_id >", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
			addCriterion("open_id >=", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdLessThan(String value) {
			addCriterion("open_id <", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdLessThanOrEqualTo(String value) {
			addCriterion("open_id <=", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdLike(String value) {
			addCriterion("open_id like", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdNotLike(String value) {
			addCriterion("open_id not like", value, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdIn(List<String> values) {
			addCriterion("open_id in", values, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdNotIn(List<String> values) {
			addCriterion("open_id not in", values, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdBetween(String value1, String value2) {
			addCriterion("open_id between", value1, value2, "openId");
			return (Criteria) this;
		}

		public Criteria andOpenIdNotBetween(String value1, String value2) {
			addCriterion("open_id not between", value1, value2, "openId");
			return (Criteria) this;
		}

		public Criteria andNickNameIsNull() {
			addCriterion("nick_name is null");
			return (Criteria) this;
		}

		public Criteria andNickNameIsNotNull() {
			addCriterion("nick_name is not null");
			return (Criteria) this;
		}

		public Criteria andNickNameEqualTo(String value) {
			addCriterion("nick_name =", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameNotEqualTo(String value) {
			addCriterion("nick_name <>", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameGreaterThan(String value) {
			addCriterion("nick_name >", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameGreaterThanOrEqualTo(String value) {
			addCriterion("nick_name >=", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameLessThan(String value) {
			addCriterion("nick_name <", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameLessThanOrEqualTo(String value) {
			addCriterion("nick_name <=", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameLike(String value) {
			addCriterion("nick_name like", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameNotLike(String value) {
			addCriterion("nick_name not like", value, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameIn(List<String> values) {
			addCriterion("nick_name in", values, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameNotIn(List<String> values) {
			addCriterion("nick_name not in", values, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameBetween(String value1, String value2) {
			addCriterion("nick_name between", value1, value2, "nickName");
			return (Criteria) this;
		}

		public Criteria andNickNameNotBetween(String value1, String value2) {
			addCriterion("nick_name not between", value1, value2, "nickName");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlIsNull() {
			addCriterion("head_image_url is null");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlIsNotNull() {
			addCriterion("head_image_url is not null");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlEqualTo(String value) {
			addCriterion("head_image_url =", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlNotEqualTo(String value) {
			addCriterion("head_image_url <>", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlGreaterThan(String value) {
			addCriterion("head_image_url >", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlGreaterThanOrEqualTo(String value) {
			addCriterion("head_image_url >=", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlLessThan(String value) {
			addCriterion("head_image_url <", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlLessThanOrEqualTo(String value) {
			addCriterion("head_image_url <=", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlLike(String value) {
			addCriterion("head_image_url like", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlNotLike(String value) {
			addCriterion("head_image_url not like", value, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlIn(List<String> values) {
			addCriterion("head_image_url in", values, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlNotIn(List<String> values) {
			addCriterion("head_image_url not in", values, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlBetween(String value1, String value2) {
			addCriterion("head_image_url between", value1, value2, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andHeadImageUrlNotBetween(String value1, String value2) {
			addCriterion("head_image_url not between", value1, value2, "headImageUrl");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNull() {
			addCriterion("create_time is null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIsNotNull() {
			addCriterion("create_time is not null");
			return (Criteria) this;
		}

		public Criteria andCreateTimeEqualTo(Date value) {
			addCriterion("create_time =", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotEqualTo(Date value) {
			addCriterion("create_time <>", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThan(Date value) {
			addCriterion("create_time >", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
			addCriterion("create_time >=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThan(Date value) {
			addCriterion("create_time <", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
			addCriterion("create_time <=", value, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeIn(List<Date> values) {
			addCriterion("create_time in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotIn(List<Date> values) {
			addCriterion("create_time not in", values, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeBetween(Date value1, Date value2) {
			addCriterion("create_time between", value1, value2, "createTime");
			return (Criteria) this;
		}

		public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
			addCriterion("create_time not between", value1, value2, "createTime");
			return (Criteria) this;
		}

		public Criteria andStatusIsNull() {
			addCriterion("status is null");
			return (Criteria) this;
		}

		public Criteria andStatusIsNotNull() {
			addCriterion("status is not null");
			return (Criteria) this;
		}

		public Criteria andStatusEqualTo(String value) {
			addCriterion("status =", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusNotEqualTo(String value) {
			addCriterion("status <>", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusGreaterThan(String value) {
			addCriterion("status >", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusGreaterThanOrEqualTo(String value) {
			addCriterion("status >=", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusLessThan(String value) {
			addCriterion("status <", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusLessThanOrEqualTo(String value) {
			addCriterion("status <=", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusLike(String value) {
			addCriterion("status like", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusNotLike(String value) {
			addCriterion("status not like", value, "status");
			return (Criteria) this;
		}

		public Criteria andStatusIn(List<String> values) {
			addCriterion("status in", values, "status");
			return (Criteria) this;
		}

		public Criteria andStatusNotIn(List<String> values) {
			addCriterion("status not in", values, "status");
			return (Criteria) this;
		}

		public Criteria andStatusBetween(String value1, String value2) {
			addCriterion("status between", value1, value2, "status");
			return (Criteria) this;
		}

		public Criteria andStatusNotBetween(String value1, String value2) {
			addCriterion("status not between", value1, value2, "status");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}